package cc.vv.baselibrary.http;

import java.io.Serializable;

import cc.vv.baselibrary.bean.base.BaseResponseObj;

/**
 * http数据响应
 * <p>
 * Created by Chen.qi on 2018/7/12.
 */

public class BaseHttpResponseObj implements Serializable {

    transient private static final long serialVersionUID = 159490299187415133L;

    /**
     * 响应类型 开始、成功、失败等各状态类型......
     */
    private String responseType;

    /**
     * loading圈
     */
    private boolean isLoading;

    /**
     * 路径地址
     */
    private String url;

    /**
     * 请求成功返回的json字符{"code":200,"message":"success","data":"998800.21"}
     */
    private String resultText;

    /**
     * 请求失败的exception信息
     */
    private String exceptionStr;

    /**
     * 服务器返回data数据
     */
    private BaseResponseObj data;

    /**
     * 请求完成响应resultCode 值为1(成功)或者其他值
     */
    private int resultCode;


    public String getResponseType() {
        return responseType;
    }

    public void setResponseType(String responseType) {
        this.responseType = responseType;
    }

    public boolean isLoading() {
        return isLoading;
    }

    public void setLoading(boolean loading) {
        isLoading = loading;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getResultText() {
        return resultText;
    }

    public void setResultText(String resultText) {
        this.resultText = resultText;
    }

    public String getExceptionStr() {
        return exceptionStr;
    }

    public void setExceptionStr(String exceptionStr) {
        this.exceptionStr = exceptionStr;
    }

    public BaseResponseObj getData() {
        return data;
    }

    public void setData(BaseResponseObj data) {
        this.data = data;
    }

    public int getResultCode() {
        return resultCode;
    }

    public void setResultCode(int resultCode) {
        this.resultCode = resultCode;
    }
}

